package com.aiks.single.singlemavenproject;

import com.google.common.base.Stopwatch;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import java.util.concurrent.TimeUnit;

/**
 * @NacosPropertySource(dataId = "single-maven-project-dev.yaml",groupId = "TEST_GROUP",autoRefreshed = true,type = ConfigType.YAML)
 * //@EnableNacosDiscovery("auto-registry=true")
 */
@SpringBootApplication(
    exclude = {DataSourceAutoConfiguration.class,
        MybatisAutoConfiguration.class},
    scanBasePackages = {"com.aiks.single.singlemavenproject"})
public class SingleMavenProjectApplication {
    private static final Logger log = LoggerFactory.getLogger(SingleMavenProjectApplication.class);
    
    public static void main(String[] args) {
        Stopwatch stopwatch = Stopwatch.createStarted();
        SpringApplication.run(SingleMavenProjectApplication.class, args);
        log.info("SingleMavenProjectApplication 项目启动耗时:[{}]秒", stopwatch.elapsed(TimeUnit.SECONDS));
    }
    
}
